package cn.edu.zafu.bigdata.YinMingyan.chapter04.q2;

// MathOperations.java
public class MathOperations {
    /**
     * Returns the sum of two integers.
     * @param a the first integer
     * @param b the second integer
     * @return the sum of a and b
     */
    public int add(int a, int b) {
        return a + b;
    }

    /**
     * Returns the sum of two doubles.
     * @param a the first double
     * @param b the second double
     * @return the sum of a and b
     */
    public double add(double a, double b) {
        return a + b;
    }

    /**
     * Returns the sum of three integers.
     * @param a the first integer
     * @param b the second integer
     * @param c the third integer
     * @return the sum of a, b, and c
     */
    public int add(int a, int b, int c) {
        return a + b + c;
    }
}